﻿<%@ Page Theme="BlueSkin" Title="نظام التدريب الالكتروني : تدريب موظفين --> حالة موظف" Language="C#" MasterPageFile="~/LmsWebSite/MasterAR.master" AutoEventWireup="true" CodeFile="EmpStatusAR.aspx.cs" Inherits="EmpStatusAR" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
        .noheight
        {
            font-size:1px;
            height:1px;
            
        }
        
        .width10px
        {
            width:10px;
        }
        
        .containerDivMargins
        {
            margin: 0px 30px 0px 30px;
        }
    
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="up1" runat="server" >
    <ContentTemplate>
        <asp:UpdateProgress ID="uprogress1" runat="server">
            <ProgressTemplate>
            
                <div style="position:fixed;width:30px;height:30px;top:0px;right:0px;border:1px solid orange;">
                    <img src="images/loading.gif" style="width:30px;height:30px;"  alt='Loading' title='Loading'/>
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    
        
<table cellspacing="5" cellpadding="5" width="100%" >
        <tr>
            <td align="right" class="heading">
               <a href="ManagerMainAR.aspx">تدريب موظفين</a> --> حالة موظف
            </td>
        </tr>
    </table>
   <br />
    <div class="clearing"></div>
    
    
    
    <div class="aligning allWidthWithMargins  direction" style="margin-top:0px;margin-bottom:0px; margin-right:30px;margin-left:30px;font-size:14px;">
        
       
        
        
        

         <div class="floating aligning direction" style="width:100px;">
                رقم الموظف             
             
              <div class="clearing"></div>      
        </div>
        <div class="floating aligning direction" style="width:300px;">
               <asp:Label ID="lblReqEmployeeBadge" runat="server" Text=""></asp:Label>           
              <div class="clearing"></div>      
        </div>
        <div class="clearing" style="height:10px;" ></div> 

        <div class="floating aligning direction" style="width:100px;">
                الاسم             
             
              <div class="clearing"></div>      
        </div>
        <div class="floating aligning direction" style="width:300px;">
               <asp:Label ID="lblReqEmployeeName" runat="server" Text=""></asp:Label>           
              <div class="clearing"></div>      
        </div>


        <div class="clearing"></div>

       

        
        

    </div>
    <div class="clearing" style="height:10px;"></div>

    <div class="aligning allWidthWithMargins direction" style="margin-left:30px;margin-right:30px;">

    <div class="allWidthWithMargins" runat="server" id="dvShowLanguage">
             <div class="floating">
                    <asp:Label ID="lblLangaugeHead" runat="server" Text="لغة الدورة"></asp:Label>    
             </div>
             
             <div class="floating noheight width10px"></div>           
            
            
            <div class="floating">
                <asp:DropDownList ID="ddlLanguage" runat="server" Width="245px" AutoPostBack="true" OnSelectedIndexChanged="ddlLanguage_SelectedIndexChanged">
                </asp:DropDownList>
            </div>

            <div class="clearing" style="width:1px;height:10px;"></div>
        </div>

        <div class="clearing"></div>
        
        <div class="aligning allWidthWithMargins direction" style="margin-bottom:30px;">
           
            <asp:GridView ID="grdCourses" runat="server" AutoGenerateColumns="False" 
            Font-size="12px" AllowPaging="True" EnableModelValidation="True" 
            DataKeyNames="ID" OnRowDataBound="grdCourses_RowDataBound" 
            onpageindexchanging="grdCourses_PageIndexChanging" Width="840px">
            
            <HeaderStyle HorizontalAlign="Center" />

            <RowStyle HorizontalAlign="Center" />

            <EmptyDataTemplate>
                <div class="floating aligning direction" style="width:840px;">
                    لا توجد دورات مسجلة لهذا الموظف.
                </div>
                <div class="clearing"></div>
            </EmptyDataTemplate>
            
            <Columns>
                
               
                <asp:TemplateField HeaderText="اسم الدورة" HeaderStyle-CssClass="gridRowStyle" ItemStyle-CssClass="gridRowStyle">
                    <ItemTemplate>
                        <a href='<%# "./RegisterCourseAR.aspx?ID=" + Eval("ID") %>' target="_blank"><asp:Label ID="Label1" runat="server" Text='<%# Eval("CourseNameAR") %>'></asp:Label></a>
                        
                    </ItemTemplate>
                
                    <HeaderStyle CssClass="gridRowStyle" />
                    <ItemStyle CssClass="gridRowStyle" />
                
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="نوع الدورة">
                <ItemTemplate>
                    <%# ((DatabaseComponent.Courses)(Container.DataItem)).objFolder.objMostParent.FolderNameAR %>
                </ItemTemplate>
                
                </asp:TemplateField>

                

               
                

                
                <asp:TemplateField HeaderText="مدة الدورة (HH:MM:SS)">
                    <ItemTemplate>
                        <%# GlobalVars.setSecounds((long)Eval("Duration")) %>
                    </ItemTemplate>
                
                </asp:TemplateField>

                 <asp:TemplateField HeaderText="لغة الدورة">
                        <ItemTemplate>
                            
                            <asp:Label ID="lblLanguageName" runat="server" Text='<%# Eval("objLanguages.LanguageNameAR")%>'></asp:Label>

                        </ItemTemplate>
                    
                    </asp:TemplateField>
                
                
                <asp:TemplateField HeaderText="حالة الدورة">
                <ItemTemplate>
                    <asp:Label ID="lblStatus" runat="server" Text=""></asp:Label>
                </ItemTemplate>
                    
                    
                </asp:TemplateField>



                <asp:TemplateField HeaderText="الوقت المستغرق (HH:MM:SS)">
                <ItemTemplate>
                    <asp:Label ID="lblSpendTime" runat="server" Text=""></asp:Label>
                </ItemTemplate>
                    
                    
                </asp:TemplateField>

                 <asp:TemplateField HeaderText="معلومات الدورة">
                <ItemTemplate>
                    <asp:HyperLink ID="hlShowDetails" runat="server" ToolTip="Show course details" NavigateUrl='<%# "RegisterCourseAR.aspx?ID=" + Eval("ID").ToString() %>' Target="_blank">عرض التفاصيل</asp:HyperLink>
                    
                </ItemTemplate>
                    
                    
                </asp:TemplateField>

                
                
                
                
            </Columns>
            <HeaderStyle BackColor="Tan" Font-Bold="True" />
        </asp:GridView>


        </div>
        
        
        
        
        <div class="clearing"></div>
        
        <div class="allWidthWithMargins  direction" >
            <div class="aligning direction" style="float:right">
                <asp:Button ID="btnBack" runat="server" Text="رجوع" CausesValidation="false" OnClientClick="history.go(-1);return false;" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
            </div>
            <div class="clearing"></div>
        </div>
        
        
        <div class="clearing" style="height:10px;"></div>
        
        <div class="aligning allWidthWithMargins  direction" >
            <asp:Label ID="lblError" runat="server" Text="" ForeColor="Red" ></asp:Label>
            <div class="clearing"></div>
            <asp:Label ID="lblResult" runat="server" Text="" ForeColor="Green" ></asp:Label>
            
            <div class="clearing"></div>
        </div>
        
        <div class="clearing"></div>
        
    </div>
    
    <div class="clearing"></div>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

